var parentId = getQueryString('id')
var params = {id:parentId};

$(document).ready(function() {
	initTable();
	
});

var table = new Table();
var initTable =function(){

	//表格加载的字段
    var columns = [
		    { 'data': 'id','render': function (data) {return '<input type="checkbox" data-id="' + data + '" name="">';}},
		    {'data': 'dic_name'},
		    {'data': 'dic_value'},
		    {'data': 'create_name'},
		    {'data': 'create_date'},
		    {'data': 'id','render':function(data){return table.delBtn(data)+table.editBtn('编辑数据字典',basePath+'/dic/toChildEditDic?id='+data+'&parentId='+parentId,'1');}}
		  ];
	//设置URL和加载的字段
    //setting(basePath+"/dic/getChildreDicList",basePath+"/dic/delDic",cloumns);
    table.setting("/dic/getChildreDicList","/dic/delDic",columns);
	//调用表格分页
    table.tablePage(params);
}